package Student;

public class Student {
    private String name;
    private String stuNum;
    private String classes;
    private String gender;
    private int age;
    private String personal;

    public void setStudent(String name, String stuNum, String classes, String gender, int age, String personal) {
        this.age = age;
        this.classes = classes;
        this.gender = gender;
        this.personal = personal;
        this.stuNum = stuNum;
        this.name = name;
    }
    public void display() {
        System.out.println("同学名为：" + this.name + ",性别为" + this.gender + ",年芳" + this.age + "岁，学号为" + this.stuNum + ",在" + this.classes + ",是一个" + this.personal + "的人");
    }

    public String getName() {
        return this.name;
    }

    public String getStuNumber() {
        return this.stuNum;
    }

    public String getClasses() {
        return this.classes;
    }

    public String getGender() {
        return this.gender;
    }

    public String getPersonal() {
        return this.personal;
    }

    public int getAge() {
        return this.age;
    }

    public static void main(String[] args) {
        Student stu1 = new Student();
        Student stu2 = new Student();
        Student stu3 = new Student();

        stu1.setStudent("郭楚涵", "202230081137", "二班", "男", 20, "怠惰");
        stu2.setStudent("海绵宝宝", "202230081138", "十七班", "女", 120, "愚蠢");
        stu3.setStudent("派大星", "202230081139", "一班", "男", 220, "傲慢");

        stu1.display();
        stu2.display();
        stu3.display();

        System.out.println("姓名：" + stu1.getName());
        System.out.println("年龄：" + stu2.getAge());
        System.out.println("班级：" + stu3.getClasses());
        System.out.println("性别：" + stu1.getGender());
        System.out.println("学号：" + stu2.getStuNumber());
        System.out.println("性格：" + stu3.getPersonal());
    }
}
